import { ApiProperty } from '@nestjs/swagger';

import { FLAG } from '@/utils/enums';
import { Flag } from '@/utils/types';

export class ListFileCollectionDto {
  @ApiProperty({
    type: String,
    description: '文件名',
    example: '开题报告',
    required: false,
  })
  title?: string;

  @ApiProperty({
    type: String,
    description: '文件类型',
    example: '["word"]',
    required: false,
  })
  file_type?: string;

  @ApiProperty({
    type: FLAG,
    description: '是否置顶',
    example: false,
    required: false,
  })
  pinned?: Flag;

  @ApiProperty({
    type: Number,
    description: '当前页码',
    example: 1,
    required: false,
  })
  current?: number;

  @ApiProperty({
    type: Number,
    description: '每页条数',
    example: 10,
    required: false,
  })
  pageSize?: number;
}
